'use strict';

const Service = require('egg').Service;

class UserService extends Service {
  async checkLogin(username, password) {
    const { ctx, app } = this;
    const user = await app.mysql.query('select * from user');
    return user;
  }
}

module.exports = UserService;
